//单个省市县信息的结构
export interface ProvinceItem {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: any;
  parentId: number;
  name: string;
  value: string;
  dictCode: any;
  hasChildren: boolean;
}

//复数的别名
export type ProvinceItems = ProvinceItem[];

//请求获取医院列表信息参数
export interface ReqGetHospitalListParams {
  page: number;
  limit: number;
  hoscode?: string;
  hosname?: string;
  hostype?: string;
  provinceCode?: string;
  cityCode?: string;
  districtCode?: string;
  status?: number;
}

export interface BookingRule {
  cycle: number;
  releaseTime: string;
  stopTime: string;
  quitDay: number;
  quitTime: string;
  rule: string[];
}

interface HospitialCommon {
  id: string;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {
    hostypeString: string;
    fullAddress: string;
  };
  hoscode: string;
  hosname: string;
  hostype: string;
  provinceCode: string;
  cityCode: string;
  districtCode: string;
  address: string;
  logoData: string;
  intro: string;
  route: string;
  status: number;
}

//单个医院信息的结构
export interface HospitalItem extends HospitialCommon {
  bookingRule: BookingRule;
}

export interface HospitalShow extends HospitialCommon {
  bookingRule: null;
}

//复数
export type HospitalItems = HospitalItem[];

//医院列表信息响应结果的结构
export interface ReqGetHospitalListResponse {
  content: HospitalItems;
  pageable: any;
  totalPages: number;
  totalElements: number;
  last: boolean;
  first: boolean;
  sort: {
    sorted: boolean;
    unsorted: boolean;
    empty: boolean;
  };
  numberOfElements: number;
  size: number;
  number: number;
  empty: boolean;
}

//医院详情结果的结构
export interface ReqGetHospitalShowResponse {
  bookingRule: BookingRule;
  hospital: HospitalShow;
}

//科室的结构
export interface Department {
  depcode: string;
  depname: string;
  disabled?: boolean;
  children: null | Department[];
}

//复数
export type Departments = Department[];

//请求获取排班规则的参数
export interface ReqGetHospitalScheduleRulesParams {
  page: number;
  limit: number;
  hoscode: string;
  depcode: string;
}

//单个排班规则的结构
export interface HospitalScheduleItem {
  workDate: string;
  workDateMd: null;
  dayOfWeek: string;
  docCount: number;
  reservedNumber: number;
  availableNumber: number;
  status: null;
}

//复数形式
export type HospitalScheduleItems = HospitalScheduleItem[];

//排班规则的响应结果结构
export interface ReqGetHospitalScheduleRulesResponse {
  total: number;
  bookingScheduleList: HospitalScheduleItems;
  baseMap: {
    hosname: string;
  };
}

//获取排班医生参数结构
export interface ReqGetDoctorsParams {
  hoscode: string;
  depcode: string;
  workDate: string;
}

//排班医生响应结果的结构
export interface DoctorItem {
  id: string;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {
    dayOfWeek: string;
    depname: string;
    hosname: string;
  };
  hoscode: string;
  depcode: string;
  title: string;
  docname: string;
  skill: string;
  workDate: string;
  workTime: number;
  reservedNumber: number;
  availableNumber: number;
  amount: number;
  status: number;
  hosScheduleId: string;
}

//复数结构
export type DoctorItems = DoctorItem[];
